package com.guigu.xm.yy.mapper;

import com.guigu.xm.pojo.MManufacture;
import com.guigu.xm.pojo.MDesignProcedure;
import com.guigu.xm.pojo.MProcedure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

public interface MProcedureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MProcedure record);

    int insertSelective(MProcedure record);

    MProcedure selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MProcedure record);

    int updateByPrimaryKey(MProcedure record);
    //查询登记工序
    List<MProcedure> chagx(String parentId);
    //登记查
    List<MProcedure> djc(@Param("detailsInt") String detailsInt,@Param("parentId") String parentId);
    //修改生产工序表
    int xgsczb(MProcedure mProcedure);

    //查询复核工序
    List<MProcedure> chafhgx(String parentId);
    //登记复核通过
    int fhtg(MProcedure mProcedure);
    //修改工序数量和交接
    int gxsl(@Param("detailsInt") Integer detailsInt,@Param("parentId") String parentId,@Param("realAmount") Integer realAmount);
    //交接复核
    int gxslfh(@Param("detailsInt") Integer detailsInt,@Param("parentId") String parentId);

}